const address = function(Mock){

    function getUserAddress(){
        let addressList = Mock.mock({
            "array|10" : [{
                id: '@id',
                address: '@cword(4, 10)',
                province: '@province',
                city: '@city',
                region: '@county',
                name: '@cname',
                phoneNumber: /1[35789]\d{9}/,
            }]
        }).array

        return {
            addressList,
            code: 200,
        }
    }
    Mock.mock('/address/getUserAddres', 'post', getUserAddress)
}

export default address